package com.example.lisongyu;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;



public class HuizongActivity extends AppCompatActivity implements View.OnClickListener {
    private Button hz_listView, hz_jindu, hz_dengliu, hz_denglu,hz_diyi,hz_xingbie,hz_xiangce,hz_disi,hz_spnner;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_huizong);

        initView();

    }

    private void initView() {
        hz_listView = findViewById(R.id.hz_listView);
        hz_jindu = findViewById(R.id.hz_jindu);
        hz_dengliu = findViewById(R.id.hz_dengliu);
        hz_denglu = findViewById(R.id.hz_denglu);
        hz_diyi = findViewById(R.id.hz_diyi);
        hz_xingbie = findViewById(R.id.hz_xingbie);
        hz_xiangce = findViewById(R.id.hz_xiangce);
        hz_disi = findViewById(R.id.hz_disi);
        hz_spnner = findViewById(R.id.hz_spnner);

        hz_listView.setOnClickListener(this);
        hz_jindu.setOnClickListener(this);
        hz_dengliu.setOnClickListener(this);
        hz_denglu.setOnClickListener(this);
        hz_diyi.setOnClickListener(this);
        hz_xingbie.setOnClickListener(this);
        hz_xiangce.setOnClickListener(this);
        hz_disi.setOnClickListener(this);
        hz_spnner.setOnClickListener(this);

    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.hz_listView:
                startActivity(new Intent(HuizongActivity.this, ListView3.class));
                break;
            case R.id.hz_jindu:
                startActivity(new Intent(HuizongActivity.this, JinduActivity.class));
                break;
            case R.id.hz_dengliu:
                startActivity(new Intent(HuizongActivity.this, DengliuActivity.class));
                break;

            case R.id.hz_denglu:
                startActivity(new Intent(HuizongActivity.this, DengluActivity.class));

                break;
            case R.id.hz_diyi:
                startActivity(new Intent(HuizongActivity.this, MainActivity5.class));
                break;
            case R.id.hz_xingbie:
                startActivity(new Intent(HuizongActivity.this, SexActivity.class));
                break;
            case R.id.hz_xiangce:
                startActivity(new Intent(HuizongActivity.this, XiangceActivity.class));
                break;
            case R.id.hz_disi:
                startActivity(new Intent(HuizongActivity.this, MainActivity4.class));
                break;
            case R.id.hz_spnner:
                startActivity(new Intent(HuizongActivity.this, SpnnerActivity.class));
                break;




        }
    }
}